package com.zcz.authentication.mapper;

import com.zcz.authentication.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User>{
	@Select("select * from user where name = #{name}")
	public User	findByName(@Param("name") String name, @Param("password") String password) ;
	
	@Select("select * from user where name = #{id}")
	public User	findById(@Param("id") Integer id) ;
	
	
	
}
